#!/bin/bash

# 复制项目的jar文件到统一的目录packages下

DIR=./

usage() {
	echo "Usage: bash copy-jar.sh"
	exit 1
}


[ -d $DIR ] || mkdir -pv $DIR

# copy jar
echo "begin copy ruoyi-gateway "
cp ../ruoyi-gateway/target/ruoyi-gateway.jar $DIR

echo "begin copy ruoyi-auth "
cp ../ruoyi-auth/target/ruoyi-auth.jar $DIR

echo "begin copy ruoyi-visual "
cp ../ruoyi-visual/ruoyi-monitor/target/ruoyi-visual-monitor.jar  $DIR

echo "begin copy ruoyi-modules-system "
cp ../ruoyi-modules/ruoyi-system/target/ruoyi-modules-system.jar $DIR

echo "begin copy ruoyi-modules-file "
cp ../ruoyi-modules/ruoyi-file/target/ruoyi-modules-file.jar $DIR

echo "begin copy ruoyi-modules-job "
cp ../ruoyi-modules/ruoyi-job/target/ruoyi-modules-job.jar $DIR

echo "begin copy ruoyi-modules-gen "
cp ../ruoyi-modules/ruoyi-gen/target/ruoyi-modules-gen.jar $DIR

